package com.validator.response;


public enum ErrorEnum {
    /**
     * error code and message
     */
    FINANCIAL_INSTITUTIONS_NOT_EXIST(1001, "金融机构未找到"),
    FAILED_APPLY_FINANCIAL_PLAN(1002, "申请金融方案失败"),
    FINANCIAL_ORDER_DOES_NOT_EXIST(1003, "金融订单不存在"),
    FINANCIAL_ORDER_CANCEL(1004, "金融订单关闭失败"),
    FINANCIAL_ORDER_COLLECTED_CAR_GENIUS(1005, "通知已提车失败"),
    FINANCIAL_ORDER_SUBMIT_AGAIN(1006, "金融订单重复提交"),
    FINANCIAL_GET_ORDER_DETAIL(1007, "从订单服务获取数据失败"),
    FINANCIAL_SUBMIT_ORDER_MAX(1008, "当前订单已申请2个机构的金融订单"),
    FINANCIAL_INSTITUTION_REPETITION(1009, "您之前申请该金融机构审核未通过，请更换金融机构"),
    FINANCIAL_ORDER_CLOSED(1010, "金融订单已完结"),
    FINANCIAL_INSTITUTIONS_ERROE(1011, "金融机构不正确"),
    FINANCIAL_NOT_REAPPLY(1012, "该金融单不可重复提交"),
    FINANCIAL_HAVE_VAILD(1013, "该订单有正在进行的金融订单"),
    FINANCIAL_INSTITUTIONS_NOT_ENABLE(1014, "金融机构未上架，请重新选择"),
    FINANCIAL_ORDER_ROLLBACK(1015, "金融单不允许回退和取消"),

    FINANCIAL_STATUS_UPDATE_ERROR(100001, "金融方案状态更新异常"),

    FINANCIAL_EXPIRE(240113, "该金融方案不存在或已下架，请重新配置"),

    ;


    private Integer code;

    private String message;

    private ErrorEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
